package dazuoye.抽象数据类型面向对象风格;

import dazuoye.基于主程序子程序风格.KWIC1;

import java.util.List;

public enum StrategyEnum {
    SuanFa1(){
        @Override
        public List<String> method(KeyWord keyWord) {
            System.out.println("算法1");
            for(String s:keyWord.getData()){
                KWIC1.circularShifts(s,keyWord.getResult(),keyWord.getN());
            }
            KWIC1.orderOutput(keyWord.getResult());
            return keyWord.getResult();
        }
    },
    SuanFa2() {
        @Override
        public List<String> method(KeyWord keyWord) {
            System.out.println("算法2");
            return null;
        }
    };

    public abstract List<String> method(KeyWord keyWord);


}
